import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  paramsMap: {}
}

const mutations = {
  refreshParams(state, paramsKeyValue) {
    Vue.set(state.paramsMap, paramsKeyValue.key, paramsKeyValue.value);
  }
}

const store = new Vuex.Store({
  state,
  mutations
})

export default store
